"use strict";
cc._RF.push(module, 'a2cd2pUjUpIwYlFSC4HCS9j', 'SmokeEff');
// scripts/SmokeEff.ts

Object.defineProperty(exports, "__esModule", { value: true });
var _a = cc._decorator, ccclass = _a.ccclass, property = _a.property;
var SmokeEff = /** @class */ (function (_super) {
    __extends(SmokeEff, _super);
    function SmokeEff() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    SmokeEff.prototype.start = function () {
        this.node.runAction(cc.moveBy(0.5, cc.v2(0, Math.random() * 60 + 100)));
        var call = cc.callFunc(this.onAniEnd, this);
        var seq = cc.sequence(cc.delayTime(0.2), cc.fadeOut(0.5));
        this.node.runAction(seq);
    };
    SmokeEff.prototype.onAniEnd = function () {
        this.node.destroy();
    };
    SmokeEff = __decorate([
        ccclass
    ], SmokeEff);
    return SmokeEff;
}(cc.Component));
exports.default = SmokeEff;

cc._RF.pop();